

define(function(require,exports,module){

	function Main(jqObj,loadParams){

	var columns = [[
		{field:'lat',title:'纬度',editor:{}},
		{field:'userId',title:'user 外键',editor:{required:true}},
		{field:'gpsId',title:'主键',hidden:true},
		{field:'lon',title:'经度',editor:{}},
		{field:'alt',title:'海拔',editor:{}},
		{field:'speed',title:'车速',editor:{}},
		{field:'createTime',title:'createTime',editor:{}},
		{field:'direction',title:'方向',editor:{}}
	]];
	var formDialog = {
		title:'',
		height:400,
		formEx:{
			url:'sys/fireusergps/save.do'
		}
	}

	var MainUI = {
		eName:'datagrid',
		idField:'gpsId',
		url:'sys/fireusergps/json.do',
		delUrl:'sys/fireusergps/del.do',
		columns:columns,
		formDialog:formDialog
	}

	jqObj.createUI(MainUI);

}
	module.exports = Main;

});
